package com.baizhi.feign;

import com.baizhi.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("BZKT-USERS")
public interface UserClient {
    //根据id查询用户
    @GetMapping("/users/{user_id}")
    public User selectOne(@PathVariable("user_id") int id);


}
